<?php
class Auth {
	
	function Auth () {
		
	}
	
	public function registerSession($id) {
		session_register('login');
		$_SESSION["user_id"] = $id;
	}
	
	public function checkLogin() {
		if (!session_is_registered('login') AND $_SESSION["user_id"] == '') {
			HTTP::redirect('index.php');
		}
	}
	
}
?>